package cn.exrick.xboot.base.entity

import cn.exrick.xboot.core.base.XbootBaseEntityKt
import cn.exrick.xboot.core.common.utils.SnowFlakeUtil
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

/**
 * @author Fei
 */
@Entity
@Table(name = "su_law_regulations")
@TableName("su_law_regulations")
@ApiModel(value = "法律法规")
data class LawAndRegulations(

        @ApiModelProperty("标题")
        var title: String? = "",


        @ApiModelProperty("区域id")
        var areaId: String? = null,

        @ApiModelProperty("法律内容")
        var content: String? = ""

) : XbootBaseEntityKt() {

    @Id
    @TableId
    override var id: String = SnowFlakeUtil.nextId().toString()


    companion object {
        const val serialVersionUID = 1L
    }
}